package com.tgu.home_action.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class SocketMessage implements Serializable {
    private Double longitude;
    private Double latitude;
    private String userId;
    private Short isSave;

    public Map<String, Object> getData() {
        Map<String, Object> data = new HashMap<>();
        data.put("longitude", this.longitude);
        data.put("latitude", this.latitude);
        data.put("volunteerId", Integer.valueOf(this.userId));
        return data;
    }
}
